#!/bin/bash
# <machineID> <N>
let m=16/$2
let startIdx=$1*$m

for (( i=0; i<m; i++ ))
do
	let idx=$startIdx+$i
	com="startDistributionWorkload_Policy "$idx
	echo $com
	eval $com
	sleep 2
done

com="startJoinPolicies "$1" "$2
echo $com
eval $com
